package video.others


class A {

    val a by lazy {
        println("init a")
        "a"
    }
}

fun main(args: Array<String>) {
    val a = A()
    //lazy  只有执行一次创建的代码，下次引用不再执行
    a.a.also(::println)
    a.a.also(::println)
}

